const cloud = require('wx-server-sdk')

cloud.init({
  env: "test4-ht5oe"
})

const db = cloud.database()
exports.main = async (event, context) => {
  try {
    return await db.collection('favourActivity').where({
      _id: event.id
    }).remove()
  } catch(e) {
    console.error(e)
  }
}